<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en"
      xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets">
    <body>
        <ui:composition template="/timer.xhtml">
            <ui:define name="title">
                Timer page
            </ui:define>

            <ui:define name="body">
                <p>The last programmatic timeout was: #{timerManager.lastProgrammaticTimeout}.</p>

                <p>The last automatic timeout was: #{timerManager.lastAutomaticTimeout}</p>

                <p>Set a programmatic timer here.</p>
                <h:form>
                    <h:commandButton value="Set Timer" action="#{timerManager.setTimer}" />
                    <h:commandButton value="Refresh" action="timer-client"/>
                </h:form>
            </ui:define>
        </ui:composition>
    </body>
</html>

